package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券对象 by_coupon
 * 
 * @author ruoyi
 * @date 2024-03-18
 */
public class ByCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal price;

    /** 时效(多少天) */
    @Excel(name = "时效(多少天)")
    private String ltime;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private String addtime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setLtime(String ltime) 
    {
        this.ltime = ltime;
    }

    public String getLtime() 
    {
        return ltime;
    }
    public void setAddtime(String addtime) 
    {
        this.addtime = addtime;
    }

    public String getAddtime() 
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("price", getPrice())
            .append("ltime", getLtime())
            .append("addtime", getAddtime())
            .toString();
    }
}
